<template>
  <sag-panel title="Hello Vue 3 + Vite" >
    ni hao
  </sag-panel>
  <a-divider orientation="horizontal" />
  <sag-drawer left-title="Left" left-width="500px" right-title="Right">
    <template #leftContent>
      LEFT CONTENT
    </template>
    <template #rightContent>
      RIGHT_CONTENT

    </template>
  </sag-drawer>

  <a-button @click="showDialog">显示弹窗</a-button>
  <sag-dialog :visible="dialogVisible" @cancel="dialogVisible = false">
    Contents
  </sag-dialog>
<!--  <TestDrag />-->
  
</template>

<script setup>
import {provide, reactive, ref} from "vue";
import {getDictByType} from "./mock/mock";
import SagSelect from "./lib/SagSelect/SagSelect.vue";
import SagDrawer from "./lib/SagDrawer/SagDrawer.vue";
import TestDrag from "./lib/drag/TestDrag.vue";
import SagDialog from "./lib/SagDialog/SagDialog.vue"

provide("getDictByType", getDictByType);


const source = reactive([
  {name: "框架", value: "0", checked: false},
  {name: "长约", value: "1", checked: false},
  {name: "普通", value: "9", checked: false},
  {name: "大类框架", value: "2", checked: false}
]);

const changeCheckLongType = (value) => {
  console.log('app changed',value);
}


const selectChange = (a,b,c) => {
  console.log(a,b,c);
}

const dialogVisible = ref(false);
const showDialog = () => {
  dialogVisible.value = !dialogVisible.value;
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
